<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>窗口内图片放大</title>
    <link rel="shortcut icon" href="../lib/image/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../lib/css/all.css">

</head>
<style>
    .imgbox {
        width: 255px;
        height: 270px;
        box-sizing: border-box;
        overflow: hidden;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }

    .imgbox img {
        object-fit: cover;
        transition: all 0.5s;
        width: 100%;
        height: 100%;
    }

    .imgbox img:hover {
        transform: scale(1.2);
    }
</style>

<body>
    <div id="app">
        <div class="imgbox">
            <img src="https://iceui.cn/view/img/img4.jpg">
        </div>
    </div>
</body>

</html>